package icu.twtool.ui.view

import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.unit.dp
import icu.twtool.ui.router.RouteState
import icu.twtool.ui.style.MyColors
import icu.twtool.ui.style.MyShape

/**
 * @author Wen
 * @since 2022-11-02
 */
@Composable
@Suppress("FunctionName")
fun RowScope.RightView(state: RouteState) {
    Surface(modifier = Modifier.padding(16.dp).fillMaxSize().clip(MyShape.RoundedCorner), color = MyColors.SecondaryBackground, contentColor = MyColors.OnSecondaryBackground) {
        state.active.comp()
    }
}